﻿@model Ninesky.MVC.ViewModels.NoticeViewModel
@using Ninesky.MVC.ViewModels;

@section Aside
    {
    @Html.Partial("AsidePartial")
}
    <div class="panel panel-default">
        <div class="panel-heading">
            @switch (Model.Type)
            {
                case NoticeType.Succeed:
                    <span class="glyphicon glyphicon-ok"></span>
                    break;
                case NoticeType.Failure:
                    <span class="glyphicon glyphicon-remove"></span>
                    break;
                case NoticeType.Warning:
                    <span class="glyphicon glyphicon-exclamation-sign"></span>
                    break;
                case NoticeType.Notify:
                    <span class="glyphicon glyphicon-comment"></span>
                    break;
            }
            @Model.Tile
        </div>

        <div class="panel-body">
            @Model.Message <p>

            @if (Model.Links != null)
            {
                @foreach (var item in Model.Links)
                {
                    <a class="btn btn-default" href="@item.Value">@item.Key</a>
                }
            }
        </div>
    </div>